The chemistry of carbon-containing compounds, especially those that occur naturally in living organisms.